x
module teapo.files { export class FileTree {​ constructor(private _host: HTMLUListElement) { } }​ interface Entry { li: HTMLLIElement; name: string; fullPath: string;​ getAttribute(name: string): string; setAttribute(name: string, value: string): void; }​ class ChildEntryList {​ private _childrenByName constructor(public ul: HTMLUListElement) { } }​ class DirectoryEntry implements Entry {​ li: HTMLLIElement; name: string; fullPath: string;​ getChild(fullPath: string): Entry { return null; }​ getAttribute(name: string): string { return null; }​ setAttribute(name: string, value: string): void { }​ } class FileEntry implements Entry {​ li: HTMLLIElement; name: string; fullPath: string;​ readContent(start: number, length: number): string { return null; }​ getAttribute(name: string): string { return null; }​ setAttribute(name: string, value: string): void { } }}